package com.ruoyi.zhgd.service;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.zhgd.domain.vo.ZjWarningDisposalVo;
import com.ruoyi.zhgd.domain.bo.ZjWarningDisposalBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 预警处置Service接口
 *
 * @author zyb
 * @date 2024-03-14
 */
public interface IZjWarningDisposalService {

    /**
     * 查询预警处置
     */
    ZjWarningDisposalVo queryById(Long id);

    /**
     * 查询预警处置列表
     */
    TableDataInfo<ZjWarningDisposalVo> queryPageList(ZjWarningDisposalBo bo, PageQuery pageQuery);

    /**
     * 查询预警处置列表
     */
    List<ZjWarningDisposalVo> queryList(ZjWarningDisposalBo bo);

    /**
     * 新增预警处置
     */
    Boolean insertByBo(ZjWarningDisposalBo bo);

    /**
     * 修改预警处置
     */
    Boolean updateByBo(ZjWarningDisposalBo bo);

    /**
     * 校验并批量删除预警处置信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    R<List<SysUser>> selectUserList(String substring,String ancestor);

    ZjWarningDisposalVo getInfoByWarning(String id, int type);

    int handleApproval(ZjWarningDisposalBo bo);
}
